Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Fix assignment syntax for native_token_address in Cairo code #1661

Closed
wants to merge 1 commit into from

Conversation

defitricks
Copy link

In the original code, the assignment for native_token_address was written as:

let (native_token_address) = Kakarot_native_token_address.read();

This included unnecessary parentheses, which is incorrect in Cairo syntax. The correct assignment should be:

let native_token_address = Kakarot_native_token_address.read();

The fix is important because using parentheses in this context would cause a syntax error or unexpected behavior in the Cairo language, preventing the code from compiling or running correctly. Removing the parentheses ensures the proper assignment syntax and maintains the correctness of the code.

This update resolves the issue and improves the overall stability and readability of the code.

Pull request type

Please check the type of change your PR introduces:

  • Code style update (formatting, renaming)

@Eikix
Copy link
Member

Eikix commented Jan 8, 2025

Sorry for the late reply and lack of review. We've been pausing the development of kakarot for now.

I'm cognizant that you spent some time doing this PR, so thank you. I will have to close it since I am cleaning a bit the repo and preparing for archival.

Archiving the repo will solve issue of people working on stuff while we are not accepting new PRs.
Thanks for understanding

@Eikix Eikix closed this Jan 8, 2025
@defitricks defitricks deleted the patch-1 branch January 8, 2025 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants